﻿<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
 
    <script type='text/html' template> 
        <input type='hidden' name='PID' value="{{ d.params.PID || '' }}"/>
    </script>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>退款单号</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Code' value='{{ d.params.Code || '' }}' lay-verify='required' placeholder='退款单号' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>退款类型 0.商品退款1.整单退款</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='ReturnType' value='{{ d.params.ReturnType || '' }}' lay-verify='required|number' placeholder='退款类型 0.商品退款1.整单退款' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>订单ID</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='OrderID' value='{{ d.params.OrderID || '' }}' lay-verify='required' placeholder='订单ID' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>商品ID</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='GoodID' value='{{ d.params.GoodID || '' }}' lay-verify='required' placeholder='商品ID' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>申请数量</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Num' value='{{ d.params.Num || '' }}' lay-verify='required|number' placeholder='申请数量' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>退货方式1.快递寄回 2.送回店铺</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='ReturnMode' value='{{ d.params.ReturnMode || '' }}' lay-verify='required|number' placeholder='退货方式1.快递寄回 2.送回店铺' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>退款金额</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='ReturnPrice' value='{{ d.params.ReturnPrice || '' }}' lay-verify='required' placeholder='退款金额' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>申请用户</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='UserID' value='{{ d.params.UserID || '' }}' lay-verify='required' placeholder='申请用户' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>申请时间</label>
        <div class='layui-input-inline'>
            <script type='text/html' template  lay-done='layui.data.datedone(d.params);'>
                <input type='text' name='ApplyTime' readonly='readonly' id='ApplyTime' value='{{ d.params.ApplyTime || '' }}' lay-verify='datetime' placeholder='yyyy-MM-dd HH:mm:ss' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
       
    <div class='layui-form-item'>
        <label class='layui-form-label'>申请原因</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Reason' value='{{ d.params.Reason || '' }}' lay-verify='required' placeholder='申请原因' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>问题描述</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Descption' value='{{ d.params.Descption || '' }}' lay-verify='required' placeholder='问题描述' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>图片描述</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Images' value='{{ d.params.Images || '' }}' lay-verify='required' placeholder='图片描述' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>备注</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='RMK' value='{{ d.params.RMK || '' }}' lay-verify='required' placeholder='备注' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>状态 0.申请中1.同意退款2.拒绝退款3.取消</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='State' value='{{ d.params.State || '' }}' lay-verify='required|number' placeholder='状态 0.申请中1.同意退款2.拒绝退款3.取消' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>审核人</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='AuditUser' value='{{ d.params.AuditUser || '' }}' lay-verify='required' placeholder='审核人' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>审核结果</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='AuditResult' value='{{ d.params.AuditResult || '' }}' lay-verify='required' placeholder='审核结果' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>审核时间</label>
        <div class='layui-input-inline'>
            <script type='text/html' template  lay-done='layui.data.datedone(d.params);'>
                <input type='text' name='AuditTime' readonly='readonly' id='AuditTime' value='{{ d.params.AuditTime || '' }}' lay-verify='datetime' placeholder='yyyy-MM-dd HH:mm:ss' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
       
    <div class='layui-form-item'>
        <label class='layui-form-label'>店铺ID</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='StoreID' value='{{ d.params.StoreID || '' }}' lay-verify='required' placeholder='店铺ID' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Other' value='{{ d.params.Other || '' }}' lay-verify='required' placeholder='其他' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div> 
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
        </div>
    </div>
</div>

<script type="text/javascript"> 
    layui.use(['form'], function () {
        var form = layui.form;//required（必填项）phone（手机号）email（邮箱）url（网址）number（数字）date（日期）identity（身份证） 自定义值
    });
     
    
    
    layui.data.datedone = function (d) { 
        layui.use(['laydate'], function () {
                var laydate = layui.laydate;
    
            //日期时间选择器
            laydate.render({
                elem: '#ApplyTime'
              , type: 'datetime'
              , calendar: true
            });
            laydate.val = d.ApplyTime;

            //日期时间选择器
            laydate.render({
                elem: '#AuditTime'
              , type: 'datetime'
              , calendar: true
            });
            laydate.val = d.AuditTime;
 
        });
    }   
</script>
